Repository navigation
feat: record rius.hint.delivered when the SDK hands a hint over (RIUS-1730) - #256
Merged
PabloPardoGarcia merged 3 commits intoOct 30, 2026
Conversation
Vendors rius-semconv v1.11.0. drain_hints() and the on_hint worker record the event on the root span of the hint's run, which the open-root tracker now keeps while the run is open; a hint with no run goes on the current span. The event carries the hint's id, code, template version and channel, never its text.
A root span that never ends no longer keeps the whole span alive, and a forked child forgets its parent's open runs (with a fresh lock) instead of reporting them as open forever.
…-riushintdelivered-when-the-sdk-hands-a-hint
PabloPardoGarcia
deleted the
pablo/rius-1730-python-record-riushintdelivered-when-the-sdk-hands-a-hint
branch
October 30, 2026 15:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes RIUS-1730
Records
rius.hint.delivered(rius-semconv v1.11.0) whenever the SDK hands a hint to the agent's code.rius.hint.*constants.drain_hints()recordsrius.hint.channel = drainfor each hint it returns.on_hintworker recordscallbackjust before calling the callback. A hand-off dropped because the callback fell behind is never received, so it gets no event.trace_id).OpenRootSpanTrackernow keeps the open root spans and drops them when the root ends, andHintInboxgets that lookup injected asroot_span.injectcomes with the framework hooks.Tests: six new tests in
tests/test_hints.py. A mutation check showed each recording path is covered: removing drain, callback or instance-wide recording, or leaking the text, fails a test. The full suite passes, along with ruff, format and mypy.